import { axios } from '@/utils/request'
export function formsList(params) {
  return axios({
    url: '/school/forms',
    method: 'post',
    data: params
  })
}
export function formsCreate(params) {
    return axios({
      url: '/school/forms/create',
      method: 'post',
      data: params
    })
  }
export function formsEdit(params) {
  return axios({
    url: '/school/forms/'+params,
    method: 'post',
  })
}
export function formsDelete(id) {
  return axios({
    url: `/school/forms/${id}/delete`,
    method: 'post',
  })
}
export function formsSetStatus(id,params) {
  return axios({
    url: `/school/forms/${id}/set-status`,
    method: 'post',
    data:params
  })
}
export function formsUpdate(id,params) {
  return axios({
    url: `school/forms/${id}/update`,
    method: 'post',
    data:params
  })
}
//推广列表
export function extensionList(id) {
  return axios({
    url: `school/forms/${id}/extension-list`,
    method: 'post',
  })
}
//跟进人列表
export function userList(params) {
  return axios({
    url: `school/users`,
    method: 'post',
    data:params
  })
}
//批量添加跟进人
export function addFollowPerson(id,params) {
  return axios({
    url: `/school/forms/${id}/add-follow-person`,
    method: 'post',
    data:params
  })
}
//删除添加跟进人
export function delFollowPerson(id) {
  return axios({
    url: `/school/forms/${id}/del-follow-person`,
    method: 'post',
  })
}
//下载二维码
export function downQrcode(parmars) {
  return axios({
    url: `/school/forms/down-qrcode`,
    method: 'post',
    data:parmars
  })
}
//获取固定图片路径
export function picUrl() {
  return axios({
    url: `/school/forms/pic-url`,
    method: 'post',
  })
}
//默认模板
export function getTemplate(data) {
  return axios({
    url: `/school/forms/get-template`,
    method: 'post',
    data:data
  })
}